package com.hnevc.yourhealthmanager.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("health_plane_table")
@ApiModel(value = "HealthPlane", description = "健康计划")
public class HealthPlane {
    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Integer id;
    @ApiModelProperty(value = "健康计划名称")
    private String planeName;
    @ApiModelProperty(value = "用户ID")
    private Integer userId;
    @ApiModelProperty(value = "健康计划描述")
    private String planeDescription;
    @ApiModelProperty(value = "健康计划典型图片")
    private String planeImage;
    @ApiModelProperty(value = "目标体重")
    private Float targetWeight;
    @ApiModelProperty(value = "起始体重")
    private Float startWeight;
    @ApiModelProperty(value = "计划开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    private Date startDate;
    @ApiModelProperty(value = "计划结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    private Date endDate;
    @ApiModelProperty(value = "计划状态，开启，进行中，已经结束，废弃")
    private String planeState;

}
